/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ControlEscolar.Validations;

import com.ControlEscolar.Beans.Group;
import com.ControlEscolar.DAOs.DAOException;
import com.ControlEscolar.DAOs.GroupDAO;

/**
 *
 * @author Bere
 */
public class ValidationGroup extends BasicValidation{
    GroupDAO groupDAO=new GroupDAO();

    public boolean isExistGroup(String groupName) throws DAOException{
        Group searchGroup=groupDAO.queryByName(groupName);
        return isFound(searchGroup);
        
    }

}
